<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.8.0" />

	<title>Class String | sweetphp</title>

	<script type="text/javascript" src="resources/combined.js?2802521858"></script>
	<script type="text/javascript" src="elementlist.js?3776638906"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-PHP.html">PHP</a>
						</li>
				<li class="active"><a href="package-SweetPHP.html">SweetPHP<span></span></a>
						<ul>
				<li class="active"><a href="package-SweetPHP.System.html">System<span></span></a>
						<ul>
				<li><a href="package-SweetPHP.System.Core.html">Core</a>
						</li>
				<li><a href="package-SweetPHP.System.Test.html">Test</a>
						</li>
				<li class="active"><a href="package-SweetPHP.System.Utility.html">Utility</a>
						</li>
							</ul></li></ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-DataParam.html">DataParam</a></li>
				<li><a href="class-DateNow.html">DateNow</a></li>
				<li><a href="class-Dir.html">Dir</a></li>
				<li><a href="class-Float.html">Float</a></li>
				<li><a href="class-Form.html">Form</a></li>
				<li><a href="class-Helpers.html">Helpers</a></li>
				<li><a href="class-InputText.html">InputText</a></li>
				<li><a href="class-Integer.html">Integer</a></li>
				<li><a href="class-Logger.html">Logger</a></li>
				<li><a href="class-Mask.html">Mask</a></li>
				<li><a href="class-SEO.html">SEO</a></li>
				<li><a href="class-Session.html">Session</a></li>
				<li class="active"><a href="class-String.html">String</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-SweetPHP.System.Utility.html" title="Summary of SweetPHP\System\Utility"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class String</h1>


	<div class="description">
	SweetPHP<br />

<p><b>String </b></p>

<p>Caminho absoluto para específicação da URL para links, arquivos,
imagens.</p>
<br />

	</div>



	<div>
		<h4>Direct known subclasses</h4>
			<a href="class-SEO.html">SEO</a>
	</div>






	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-SweetPHP.html">SweetPHP</a>\<a href="package-SweetPHP.System.html">System</a>\<a href="package-SweetPHP.System.Utility.html">Utility</a><br />

				<b>Copyright:</b>
				Copyright (c) 2013 - 2014, Ilines.<br />
				<b>Author:</b>
				sweetphp<br />
				<b>Example:</b>
				CleanString::clean('João ladrão foi a prisão');<br />
		<b>Located at</b> <a href="source-class-String.html#3-391" title="Go to source code">libs/system/utility/String.php</a><br />
	</div>



	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="isString" id="_isString">

		<td class="attributes"><code>
			 public static
			true
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_isString">#</a>
		<code><a href="source-class-String.html#15-25" title="Go to source code">isString</a>( <span>type <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>is string?</p>

		</div>

		<div class="description detailed hidden">
			
<p>is string?</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$string</var></dt>
					<dd><code>type</code><br>$string</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>true</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="isEmpty" id="_isEmpty">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_isEmpty">#</a>
		<code><a href="source-class-String.html#27-50" title="Go to source code">isEmpty</a>( <span>type <var>$string</var></span> )</code>

		<div class="description short">
			
<p>is empty?</p>

		</div>

		<div class="description detailed hidden">
			
<p>is empty?</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$string</var></dt>
					<dd><code>type</code><br>$string</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="equals" id="_equals">

		<td class="attributes"><code>
			 public static
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_equals">#</a>
		<code><a href="source-class-String.html#52-63" title="Go to source code">equals</a>( <span>type <var>$varX</var></span>, <span>type <var>$varY</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$varX</var></dt>
					<dd><code>type</code><br>var</dd>
					<dt><var>$varY</var></dt>
					<dd><code>type</code><br>$varY</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br />
				</div>


				<h4>Example</h4>
				<div class="list">
						$varX == $varY -&gt; return true<br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="toFloat" id="_toFloat">

		<td class="attributes"><code>
			 public static
			float
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toFloat">#</a>
		<code><a href="source-class-String.html#65-75" title="Go to source code">toFloat</a>( <span>mixed <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Converte String para Float</p>

		</div>

		<div class="description detailed hidden">
			
<p>Converte String para Float</p>




				<h4>Returns</h4>
				<div class="list">
					<code>float</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toArray" id="_toArray">

		<td class="attributes"><code>
			 public static
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toArray">#</a>
		<code><a href="source-class-String.html#77-83" title="Go to source code">toArray</a>( <span>mixed <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Converte String para Array</p>

		</div>

		<div class="description detailed hidden">
			
<p>Converte String para Array</p>




				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getMD5UniqueID" id="_getMD5UniqueID">

		<td class="attributes"><code>
			 public static
			type
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getMD5UniqueID">#</a>
		<code><a href="source-class-String.html#85-91" title="Go to source code">getMD5UniqueID</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			



				<h4>Returns</h4>
				<div class="list">
					<code>type</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toMD5" id="_toMD5">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toMD5">#</a>
		<code><a href="source-class-String.html#93-102" title="Go to source code">toMD5</a>( <span>mixed <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Converte String para MD5</p>

		</div>

		<div class="description detailed hidden">
			
<p>Converte String para MD5</p>




				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br>(md5) $var<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toBase64Enconde" id="_toBase64Enconde">

		<td class="attributes"><code>
			 public static
			(base64_encode)
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toBase64Enconde">#</a>
		<code><a href="source-class-String.html#104-114" title="Go to source code">toBase64Enconde</a>( <span>mixed <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Converte String para Base64Endoce</p>

		</div>

		<div class="description detailed hidden">
			
<p>Converte String para Base64Endoce</p>




				<h4>Returns</h4>
				<div class="list">
					<code>(base64_encode)</code><br>$string<br />
				</div>


				<h4>Link</h4>
				<div class="list">
						<a href="http://php.net/manual/pt_BR/function.base64-encode.php">Decodifica dados codificados com MIME base64</a><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="base64Decode" id="_base64Decode">

		<td class="attributes"><code>
			 public static
			(base64_decode)
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_base64Decode">#</a>
		<code><a href="source-class-String.html#116-127" title="Go to source code">base64Decode</a>( <span>mixed <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Converte String para Base64Decode</p>

		</div>

		<div class="description detailed hidden">
			
<p>Converte String para Base64Decode</p>




				<h4>Returns</h4>
				<div class="list">
					<code>(base64_decode)</code><br>$string<br />
				</div>


				<h4>Link</h4>
				<div class="list">
						<a href="http://www.php.net/manual/pt_BR/function.base64-decode.php">Base 64 Decode</a><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="toInteger" id="_toInteger">

		<td class="attributes"><code>
			 public static
			<code><a href="class-Integer.html">Integer</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toInteger">#</a>
		<code><a href="source-class-String.html#129-139" title="Go to source code">toInteger</a>( <span>mixed <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Converte String para Inteiro</p>

		</div>

		<div class="description detailed hidden">
			
<p>Converte String para Inteiro</p>




				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="class-Integer.html">Integer</a></code></code><br>$var<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toUpper" id="_toUpper">

		<td class="attributes"><code>
			 public static
			STRING
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toUpper">#</a>
		<code><a href="source-class-String.html#141-147" title="Go to source code">toUpper</a>( <span>mixed <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Converte String para Upper</p>

		</div>

		<div class="description detailed hidden">
			
<p>Converte String para Upper</p>




				<h4>Returns</h4>
				<div class="list">
					<code>STRING</code><br>Upper $var<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toLower" id="_toLower">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toLower">#</a>
		<code><a href="source-class-String.html#149-155" title="Go to source code">toLower</a>( <span>mixed <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Converte String para Upper</p>

		</div>

		<div class="description detailed hidden">
			
<p>Converte String para Upper</p>




				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br>lower $var<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="compareString" id="_compareString">

		<td class="attributes"><code>
			 public static
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_compareString">#</a>
		<code><a href="source-class-String.html#157-167" title="Go to source code">compareString</a>( <span>mixed <var>$stringA</var> = <span class="php-quote">&quot;&quot;</span></span>, <span>mixed <var>$stringB</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Compara String A se � igual a String B Accept Method POST and GET</p>

		</div>

		<div class="description detailed hidden">
			
<p>Compara String A se � igual a String B Accept Method POST and GET</p>




				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br>(true / false)<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="clearStripTags" id="_clearStripTags">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_clearStripTags">#</a>
		<code><a href="source-class-String.html#169-175" title="Go to source code">clearStripTags</a>( <span>mixed <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="clean" id="_clean">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_clean">#</a>
		<code><a href="source-class-String.html#298-325" title="Go to source code">clean</a>( <span>string <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Limpa uma string para ser usada como termo de uma URL</p>

		</div>

		<div class="description detailed hidden">
			
<p>Limpa uma string para ser usada como termo de uma URL</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$string</var></dt>
					<dd><code>string</code><br>$string</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="removeAcento" id="_removeAcento">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_removeAcento">#</a>
		<code><a href="source-class-String.html#327-355" title="Go to source code">removeAcento</a>( <span>string <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Remove os acentos de uma string</p>

		</div>

		<div class="description detailed hidden">
			
<p>Remove os acentos de uma string</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$string</var></dt>
					<dd><code>string</code><br>$string</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="removerCaracteresEspeciais" id="_removerCaracteresEspeciais">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_removerCaracteresEspeciais">#</a>
		<code><a href="source-class-String.html#357-367" title="Go to source code">removerCaracteresEspeciais</a>( <span>string <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Remove os acentos e caracteres simples de uma string</p>

		</div>

		<div class="description detailed hidden">
			
<p>Remove os acentos e caracteres simples de uma string</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$string</var></dt>
					<dd><code>string</code><br>$string</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="clearTagHTML" id="_clearTagHTML">

		<td class="attributes"><code>
			 public static
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_clearTagHTML">#</a>
		<code><a href="source-class-String.html#369-376" title="Go to source code">clearTagHTML</a>( <span>type <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			
<p>Clear text white HTML code.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Clear text white HTML code.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$string</var></dt>
					<dd><code>type</code><br>$string</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br>$string<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="resume" id="_resume">

		<td class="attributes"><code>
			 public static
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_resume">#</a>
		<code><a href="source-class-String.html#378-389" title="Go to source code">resume</a>( <span>type <var>$string</var> = <span class="php-quote">&quot;&quot;</span></span>, <span>mixed <var>$length</var> = <span class="php-num">0</span></span>, <span>mixed <var>$delim</var> = <span class="php-quote">'...'</span></span> )</code>

		<div class="description short">
			
<p>Resumindo texto</p>

		</div>

		<div class="description detailed hidden">
			
<p>Resumindo texto</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$string</var></dt>
					<dd><code>type</code><br>$string</dd>
					<dt><var>$length</var></dt>
					<dd></dd>
					<dt><var>$delim</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br>$string<br />
				</div>




		</div>
		</div></td>
	</tr>
	</table>


















</div>

	<div id="footer">
		sweetphp API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
	</div>
</div>
</div>
</body>
</html>
